cmake_minimum_required ( VERSION 2.8 )

# replace "peconv_project" by your own project name:
project ( pe_to_shellcode )

option (PE2SHC_BUILD_TESTING "enable testing" OFF)

# libs
# modules:
set ( M_PARSER "libpeconv/libpeconv" )

# modules paths:
set (PECONV_DIR "${CMAKE_SOURCE_DIR}/${M_PARSER}" CACHE PATH "PEConv main path")
add_subdirectory ( ${PECONV_DIR} )
set ( PECONV_LIB $<TARGET_FILE:libpeconv> CACHE FILE "PEConvLib library path" )

# Add sub-directories
#
add_subdirectory ( pe2shc )
add_subdirectory ( runshc )

# Setup testing
if(PE2SHC_BUILD_TESTING)
	enable_testing()
	add_subdirectory ( tests )
endif()
